package com.jinke.api.modules.app.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jinke.api.common.api.CommonResult;
import com.jinke.api.modules.app.enums.ReplyType;
import com.jinke.api.modules.app.model.UserQuestion;
import com.jinke.api.modules.app.request.QuestionDetailRequest;
import com.jinke.api.modules.app.request.QuestionQueryRequest;
import com.jinke.api.modules.app.request.QuestionReplyRequest;
import com.jinke.api.modules.app.response.UserQuestionVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author macro
 * @since 2024-01-24
 */
public interface UserQuestionService extends IService<UserQuestion> {

    Page<UserQuestionVO> list(QuestionQueryRequest request);
    UserQuestionVO detail(QuestionDetailRequest request);
    CommonResult create(UserQuestion userQuestion);
    CommonResult close(QuestionDetailRequest questionDetailRequest);
    CommonResult reply(QuestionReplyRequest request);
    CommonResult reopen(QuestionReplyRequest request);
    CommonResult upload(MultipartFile file, Integer id, ReplyType replyType);
    CommonResult unread(QuestionDetailRequest questionDetailRequest);
}
